import { getRequest,postRequest } from '/@/lib/axios';

interface RequestParams {
    [key: string]: any;
}

interface HMIParams {
    [key: string]: any;
}
export const levelingMachineApi = {
    // 轧制能力仿真列表请求数据
    LHMI: (param: HMIParams) => {
        return postRequest('/lhmi/HMI', param);
    },

    LHMIN: (param: HMIParams) => {
        return postRequest('/lhm/HMI', param);
    },


    // 连退平整机工艺参数列表
    findData: (param:RequestParams) => {
        return postRequest('/eapi/tPd0DataCal1630/findByPage', param);
    },

    findHistorySetValueByPage: (param:RequestParams) => {
        return postRequest('/eapi/tPd0DataCal1630/findHistorySetValueByPage', param);
    },


    
    findProcessValue: (param:RequestParams) => {
        return postRequest('/eapi/tbcal/getTbCal1630Flatness', param);
    },

    findEarlyWarning: (param:RequestParams) =>{
        return postRequest('/eapi/flatness/getEarlyWarning', param);
    },

    findSteelGradeData: (param:RequestParams) => {
        return postRequest('/eapi/tbdiDataCal1630/findSteelGradeByInDocNo', param);
    },

    HMI: (param: HMIParams) => {
        return postRequest('/fmapi/HMI', param);
    },

    findHistoryFlatnessPercentage:(param:RequestParams) => {
        return postRequest('/eapi/tPd0DataCal1630/findHistoryFlatnessPercentage', param);
    },
    



}